package com.atguigu.gmall.user;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "service-user", fallback = UserFeignDegradeClient.class)
public interface UserFeignClient {

    @GetMapping("/api/user/inner/get/user/address/list/{userId}")
    Result<List<UserAddress>> getUserAddressList(
            @PathVariable("userId") Long userId);

}
